package interview.java.q2.internal.secret;

import interview.java.q2.internal.AnswerResultPrinter;
import interview.java.q2.internal.QuestionInputReader;
import java.util.List;

public class Main2 {

  public static void main(String[] args) {
    new Main2().start();
  }

  void start() {
    QuestionInputReader reader = QuestionInputReader.create();

    for (String s = reader.read(); !s.replaceAll("\\W", "").isEmpty(); s = reader.read()) {
      List<List<String>> result = new AnswerResultMaker(s).make();

      System.out.println("输出：");
      new AnswerResultPrinter(result).print();
    }
  }
}
